<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport"
        content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
    // 既然Function是一个类, 那么有此定义
    //class Function { // 构造函数 => 函数的对象
    //  // [native code]
    //}

    //function Function() {
    //
    //}

    //推断1: Function也是一个Function类的对象
    //Function.__proto__  => Function.prototype
    //console.log(Function.__proto__ === Function.prototype)

    // 推断2: 已知所有对象都是Object的子类, 那么有此定义
    //class Function extends Object {
    //  [native code]
    // }
    // Function.prototype.__proto__ === Object.prototype
    // console.log(Function.prototype.__proto__ === Object.prototype)

    // 推断3: 既然有Object类, 那么有定义
    class Object {
      // [native code]
    }

    // Object又是Function类的对象
    // Object.__proto__ === Function.prototype
    console.log(Object.__proto__ === Function.prototype)

    console.log(Function.__proto__ === Object.__proto__)
    console.log(Object.__proto__ === Object.prototype)
  </script>
</body>
</html>
